import request from '@/utils/request'

// 查询素材vip列表
export function listVip(query) {
  return request({
    url: '/bg/vip/list',
    method: 'get',
    params: query
  })
}

// 查询素材vip详细
export function getVip(id) {
  return request({
    url: '/bg/vip/getById/' + id,
    method: 'get'
  })
}

// 新增素材vip
export function addVip(data) {
  return request({
    url: '/bg/vip/add',
    method: 'post',
    data: data
  })
}

// 修改素材vip
export function updateVip(data) {
  return request({
    url: '/bg/vip/update',
    method: 'put',
    data: data
  })
}

// 删除素材vip
export function delVip(id) {
  return request({
    url: '/bg/vip/delete/' + id,
    method: 'delete'
  })
}

// 导入素材vip
export function importVip(data) {
    return request({
      url: '/bg/vip/import',
      method: 'post',
      data: data
    })
}